package com.strange.mdl.module.mdl.dal.mysql.dailydharma;

import java.util.*;

import com.strange.mdl.framework.common.pojo.PageResult;
import com.strange.mdl.framework.mybatis.core.query.LambdaQueryWrapperX;
import com.strange.mdl.framework.mybatis.core.mapper.BaseMapperX;
import com.strange.mdl.module.mdl.controller.admin.dailydharma.vo.DailydharmaUsersPageReqVO;
import com.strange.mdl.module.mdl.dal.dataobject.dailydharma.DailydharmaUsersDO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 今日弘法用户操作 Mapper
 *
 * @author 密谛灵总控
 */
@Mapper
public interface DailydharmaUsersMapper extends BaseMapperX<DailydharmaUsersDO> {

    default PageResult<DailydharmaUsersDO> selectPage(DailydharmaUsersPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<DailydharmaUsersDO>()
                .eqIfPresent(DailydharmaUsersDO::getIsLike, reqVO.getIsLike())
                .eqIfPresent(DailydharmaUsersDO::getIsCollect, reqVO.getIsCollect())
                .eqIfPresent(DailydharmaUsersDO::getIsShare, reqVO.getIsShare())
                .eqIfPresent(DailydharmaUsersDO::getIsMessage, reqVO.getIsMessage()));
    }

}